﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpDay01___Homework
{
    public class Program
    {
        public static void Main(string[] args)
        {
            //Requirement 1:
            //Output your favorite quote onto the console.
            Console.WriteLine("Luke, I am your father... \n- Darth Vader");
            Console.WriteLine("---------------------------------------------------------");

            //Requirement 2:
            //Take an input as a string from the user, and then output on the next line.
            Console.Write("What.. is your name? ");
            string input = Console.ReadLine();
            Console.WriteLine("You answered: {0}", input);
            Console.WriteLine("---------------------------------------------------------");

            //Requirement 3:
            //Create an array that holds from 0-9 and loop through to output it on the console.
            int[] arr = new int[10] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
            for (int i = 0; i < arr.Length; i++)
            {
                if (i < arr.Length - 1) Console.Write(i + ", ");
                else Console.Write(i);
            }
            Console.Write("\n");
            Console.WriteLine("---------------------------------------------------------");

            //Requirement 4:
            //Create an array of objects.  Add your name, age, birthday, favorite hobby in separate index.  Output the array onto the console.
            object[] objArray = new object[] { "Jeremy", 22, "Feb. 1, 1993", "Long walks on the beach, and having candle-lit dinners." };
            for (int i = 0; i < objArray.Length; i++)
            {
                Console.WriteLine("{0}: {1}", objArray[i].GetType().Name, objArray[i]);
            }
            Console.Write("\n");
            Console.WriteLine("---------------------------------------------------------");

            Console.WriteLine("Please press enter to exit the program.");
            Console.ReadLine();
        }
    }
}